home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / SHARED.DIR / 01964_Script_Animate < prev    next >
Text File  |  1995-09-13  |  11KB  |  380 lines

  1. global gbeenclicked
  2.  
  3. on AnimateLoop whichsprite, whichCast, HowManyCast, whichsound, HowManyTimes
  4.   ArrowCursor
  5.   puppetsound whichsound
  6.   updatestage
  7.   set gSprite = whichsprite
  8.   set gCast = whichCast
  9.   set gEndCast = whichCast + (HowManyCast - 1)
  10.   set the castNum of sprite gSprite = gCast
  11.   set RunThruCount = 0
  12.   repeat while RunThruCount < HowManyTimes and (the MouseUp)
  13.     set count = 0
  14.     repeat while count < HowManyCast and (the MouseUp)
  15.       if (the castNum of sprite gSprite = gEndCast) then
  16.         wait .8
  17.         set the castNum of sprite gSprite = gCast
  18.         updatestage
  19.       else
  20.         set theCast = the castNum of sprite gSprite
  21.         set the castNum of sprite gSprite = theCast + 1
  22.         updatestage
  23.       end if
  24.       wait .5
  25.       if the mousedown then
  26.         exit repeat
  27.       end if
  28.       set count = count + 1
  29.     end repeat
  30.     if the mousedown then
  31.       exit repeat
  32.     end if
  33.     set the castnum of sprite whichsprite = gCast
  34.     updatestage
  35.     set RunThruCount = RunThruCount + 1
  36.   end repeat
  37.   set the castnum of sprite whichsprite = gCast
  38.   updatestage
  39.   Puppetsound 0
  40.   set gbeenclicked = 0
  41. end
  42.  
  43. on AnimateLoopFast whichsprite, whichCast, HowManyCast, whichsound, HowManyTimes
  44.   ArrowCursor
  45.   puppetsound whichsound
  46.   set gSprite = whichsprite
  47.   set gCast = whichCast
  48.   set gEndCast = whichCast + (HowManyCast - 1)
  49.   set the castNum of sprite gSprite = gCast
  50.   set RunThruCount = 0
  51.   repeat while RunThruCount < HowManyTimes and (the MouseUp)
  52.     set count = 0
  53.     repeat while count < HowManyCast and (the MouseUp)
  54.       if (the castNum of sprite gSprite = gEndCast) then
  55.         wait .3
  56.         set the castNum of sprite gSprite = gCast
  57.         updatestage
  58.       else
  59.         set theCast = the castNum of sprite gSprite
  60.         set the castNum of sprite gSprite = theCast + 1
  61.         updatestage
  62.       end if
  63.       wait .2
  64.       set count = count + 1
  65.     end repeat
  66.     if the mousedown then
  67.       exit repeat
  68.     end if
  69.     set the castnum of sprite whichsprite = gCast
  70.     updatestage
  71.     set RunThruCount = RunThruCount + 1
  72.   end repeat
  73.   set the castnum of sprite whichsprite = gCast
  74.   updatestage
  75.   Puppetsound 0
  76.   set gbeenclicked = 0
  77. end
  78.  
  79. on AnimateLoopFastest whichsprite, whichCast, HowManyCast, whichsound, HowManyTimes
  80.   ArrowCursor
  81.   puppetsound whichsound
  82.   set gSprite = whichsprite
  83.   set gCast = whichCast
  84.   set gEndCast = whichCast + (HowManyCast - 1)
  85.   set the castNum of sprite gSprite = gCast
  86.   set RunThruCount = 0
  87.   repeat while RunThruCount < HowManyTimes and (the MouseUp)
  88.     set count = 0
  89.     repeat while count < HowManyCast and (the MouseUp)
  90.       if (the castNum of sprite gSprite = gEndCast) then
  91.         wait .1
  92.         set the castNum of sprite gSprite = gCast
  93.         updatestage
  94.       else
  95.         set theCast = the castNum of sprite gSprite
  96.         set the castNum of sprite gSprite = theCast + 1
  97.         updatestage
  98.       end if
  99.       wait .1
  100.       set count = count + 1
  101.     end repeat
  102.     if the mousedown then
  103.       exit repeat
  104.     end if
  105.     set the castnum of sprite whichsprite = gCast
  106.     updatestage
  107.     set RunThruCount = RunThruCount + 1
  108.   end repeat
  109.   set the castnum of sprite whichsprite = gCast
  110.   updatestage
  111.   Puppetsound 0
  112.   set gbeenclicked = 0
  113. end
  114.  
  115. on AnimateLoopFastPause whichsprite, whichCast, HowManyCast, whichsound, HowManyTimes, Pausehowlong
  116.   ArrowCursor
  117.   puppetsound whichsound
  118.   set gSprite = whichsprite
  119.   set gCast = whichCast
  120.   set gEndCast = whichCast + (HowManyCast - 1)
  121.   set the castNum of sprite gSprite = gCast
  122.   set RunThruCount = 0
  123.   repeat while RunThruCount < HowManyTimes and (the MouseUp)
  124.     set count = 0
  125.     repeat while count < HowManyCast and (the MouseUp)
  126.       if (the castNum of sprite gSprite = gEndCast) then
  127.         wait Pausehowlong
  128.         set the castNum of sprite gSprite = gCast
  129.         updatestage
  130.       else
  131.         set theCast = the castNum of sprite gSprite
  132.         set the castNum of sprite gSprite = theCast + 1
  133.         updatestage
  134.       end if
  135.       wait .2
  136.       set count = count + 1
  137.     end repeat
  138.     if the mousedown then
  139.       exit repeat
  140.     end if
  141.     wait Pausehowlong
  142.     set the castnum of sprite whichsprite = gCast
  143.     updatestage
  144.     set RunThruCount = RunThruCount + 1
  145.   end repeat
  146.   set the castnum of sprite whichsprite = gCast
  147.   updatestage
  148.   Puppetsound 0
  149.   set gbeenclicked = 0
  150. end
  151.  
  152. on AnimateLoopToFro whichsprite, whichCast, HowManyCast, whichsound, HowManyTimes
  153.   ArrowCursor
  154.   puppetsound whichsound
  155.   set gSprite = whichsprite
  156.   set gCast = whichCast
  157.   set gEndCast = whichCast + (HowManyCast - 1)
  158.   set the castNum of sprite gSprite = gCast
  159.   set RunThruCount = 0
  160.   repeat while RunThruCount < HowManyTimes and (the MouseUp)
  161.     set count = 0
  162.     repeat while count < HowManyCast and (the MouseUp)
  163.       set theCast = the castNum of sprite gSprite
  164.       set the castNum of sprite gSprite = theCast + 1
  165.       updatestage
  166.       wait .1
  167.       set count = count + 1
  168.     end repeat
  169.     set count = 0
  170.     repeat while count < HowManyCast and (the MouseUp)
  171.       set theCast = the castNum of sprite gSprite
  172.       set the castNum of sprite gSprite = theCast - 1
  173.       updatestage
  174.       wait .1
  175.       set count = count + 1
  176.     end repeat
  177.     if the mousedown then
  178.       exit repeat
  179.     end if
  180.     set the castnum of sprite whichsprite = gCast
  181.     updatestage
  182.     set RunThruCount = RunThruCount + 1
  183.   end repeat
  184.   set the castnum of sprite whichsprite = gCast
  185.   updatestage
  186.   Puppetsound 0
  187.   set gbeenclicked = 0
  188. end
  189.  
  190. on AnimateLoopToFroSlow whichsprite, whichCast, HowManyCast, whichsound, HowManyTimes
  191.   ArrowCursor
  192.   puppetsound whichsound
  193.   set gSprite = whichsprite
  194.   set gCast = whichCast
  195.   set gEndCast = whichCast + (HowManyCast - 1)
  196.   set the castNum of sprite gSprite = gCast
  197.   set RunThruCount = 0
  198.   repeat while RunThruCount < HowManyTimes and (the MouseUp)
  199.     set count = 0
  200.     repeat while count < HowManyCast and (the MouseUp)
  201.       set theCast = the castNum of sprite gSprite
  202.       set the castNum of sprite gSprite = theCast + 1
  203.       updatestage
  204.       wait .4
  205.       set count = count + 1
  206.     end repeat
  207.     set count = 0
  208.     repeat while count < HowManyCast and (the MouseUp)
  209.       set theCast = the castNum of sprite gSprite
  210.       set the castNum of sprite gSprite = theCast - 1
  211.       updatestage
  212.       wait .4
  213.       set count = count + 1
  214.     end repeat
  215.     if the mousedown then
  216.       exit repeat
  217.     end if
  218.     set the castnum of sprite whichsprite = gCast
  219.     updatestage
  220.     set RunThruCount = RunThruCount + 1
  221.   end repeat
  222.   set the castnum of sprite whichsprite = gCast
  223.   updatestage
  224.   Puppetsound 0
  225.   set gbeenclicked = 0
  226. end
  227.  
  228. on AnimateToSlowPauseFrom whichsprite, whichCast, HowManyCast, whichsound, HowManyTimes
  229.   ArrowCursor
  230.   puppetsound whichsound
  231.   set gSprite = whichsprite
  232.   set gCast = whichCast
  233.   set gEndCast = whichCast + (HowManyCast)
  234.   set the castNum of sprite gSprite = gCast
  235.   set RunThruCount = 0
  236.   repeat while RunThruCount < HowManyTimes and (the MouseUp)
  237.     set count = 0
  238.     repeat while (the MouseUp)
  239.       if (the castNum of sprite gSprite = gEndCast) then
  240.         exit repeat
  241.       else
  242.         set theCast = the castNum of sprite gSprite
  243.         set the castNum of sprite gSprite = theCast + 1
  244.         updatestage
  245.         wait .4
  246.       end if
  247.     end repeat
  248.     wait 1
  249.     repeat while (the MouseUp)
  250.       if (the castNum of sprite gSprite = gCast) then
  251.         exit repeat
  252.       else
  253.         set theCast = the castNum of sprite gSprite
  254.         set the castNum of sprite gSprite = theCast - 1
  255.         updatestage
  256.         wait .4
  257.       end if
  258.     end repeat
  259.     if the mousedown then
  260.       exit repeat
  261.     end if
  262.     set the castnum of sprite whichsprite = gCast
  263.     updatestage
  264.     set RunThruCount = RunThruCount + 1
  265.   end repeat
  266.   set the castnum of sprite whichsprite = gCast
  267.   updatestage
  268.   Puppetsound 0
  269.   set gbeenclicked = 0
  270. end
  271.  
  272.  
  273. on AnimateRepeat whichsprite, whichCast, HowManyCast, whichsound, HowManyTimes
  274.   ArrowCursor
  275.   set gSprite = whichsprite
  276.   set gCast = whichCast
  277.   set gEndCast = whichCast + (HowManyCast - 1)
  278.   set the castNum of sprite gSprite = gCast
  279.   set RunThruCount = 0
  280.   repeat while RunThruCount < HowManyTimes and (the MouseUp)
  281.     set count = 0
  282.     repeat while count < HowManyCast and (the MouseUp)
  283.       puppetsound whichsound
  284.       if (the castNum of sprite gSprite = gEndCast) then
  285.         wait .3
  286.         set the castNum of sprite gSprite = gCast
  287.         updatestage
  288.       else
  289.         set theCast = the castNum of sprite gSprite
  290.         set the castNum of sprite gSprite = theCast + 1
  291.         updatestage
  292.       end if
  293.       wait .3
  294.       set count = count + 1
  295.     end repeat
  296.     if the mousedown then
  297.       exit repeat
  298.     end if
  299.     set the castnum of sprite whichsprite = gCast
  300.     updatestage
  301.     Puppetsound 0
  302.     set RunThruCount = RunThruCount + 1
  303.   end repeat
  304.   set the castnum of sprite whichsprite = gCast
  305.   updatestage
  306.   Puppetsound 0
  307.   set gbeenclicked = 0
  308. end
  309.  
  310. on AnimateLoopSoundFade whichsprite, whichCast, HowManyCast, whichsound, HowManyTimes
  311.   ArrowCursor
  312.   puppetsound whichsound
  313.   set gSprite = whichsprite
  314.   set gCast = whichCast
  315.   set gEndCast = whichCast + (HowManyCast - 1)
  316.   set the castNum of sprite gSprite = gCast
  317.   set RunThruCount = 0
  318.   repeat while RunThruCount < HowManyTimes and (the MouseUp)
  319.     set count = 0
  320.     repeat while count < HowManyCast and (the MouseUp)
  321.       if (the castNum of sprite gSprite = gEndCast) then
  322.         wait .5
  323.         set the castNum of sprite gSprite = gCast
  324.         updatestage
  325.       else
  326.         set theCast = the castNum of sprite gSprite
  327.         set the castNum of sprite gSprite = theCast + 1
  328.         updatestage
  329.       end if
  330.       wait .3
  331.       set count = count + 1
  332.     end repeat
  333.     if the mousedown then
  334.       exit repeat
  335.     end if
  336.     set the castnum of sprite whichsprite = gCast
  337.     updatestage
  338.     set RunThruCount = RunThruCount + 1
  339.   end repeat
  340.   set the castnum of sprite whichsprite = gCast
  341.   updatestage
  342.   Sound FadeOut 1, 3*60  
  343.   set gbeenclicked = 0
  344. end
  345.  
  346. on AnimateRepeat2 whichsprite, whichCast, HowManyCast, whichsound, HowManyTimes
  347.   ArrowCursor
  348.   set gSprite = whichsprite
  349.   set gCast = whichCast
  350.   set gEndCast = whichCast + (HowManyCast - 1)
  351.   set the castNum of sprite gSprite = gCast
  352.   set RunThruCount = 0
  353.   repeat while RunThruCount < HowManyTimes and (the MouseUp)
  354.     set count = 0
  355.     puppetsound whichsound
  356.     repeat while count < HowManyCast and (the MouseUp)
  357.       if (the castNum of sprite gSprite = gEndCast) then
  358.         wait .4
  359.         set the castNum of sprite gSprite = gCast
  360.         updatestage
  361.       else
  362.         set theCast = the castNum of sprite gSprite
  363.         set the castNum of sprite gSprite = theCast + 1
  364.         updatestage
  365.       end if
  366.       wait .4
  367.       set count = count + 1
  368.     end repeat
  369.     if the mousedown then
  370.       exit repeat
  371.     end if
  372.     set the castnum of sprite whichsprite = gCast
  373.     updatestage
  374.     set RunThruCount = RunThruCount + 1
  375.   end repeat
  376.   set the castnum of sprite whichsprite = gCast
  377.   updatestage
  378.   Puppetsound 0
  379.   set gbeenclicked = 0
  380. end